package com.ruoyi.system.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author nanyang
 */
public class PmsPortraitDto {

    @Data
    @ApiModel("新增画像")
    public static class Insert {
        @ApiModelProperty("性别")
        private Byte gender;
        @ApiModelProperty("最大年龄")
        private Integer maxAge;
        @ApiModelProperty("最小年龄")
        private Integer minAge;
        @ApiModelProperty("学历")
        private Byte qualification;
        @ApiModelProperty("职业")
        private Integer job;
        @ApiModelProperty("画像地址")
        @NotNull(message = "画像地址不能为空")
        private String path;
        @ApiModelProperty("备注")
        private String remark;
    }

    @Data
    @ApiModel("修改画像")
    public static class Update {
        @ApiModelProperty("ID")
        private Long id;
        @ApiModelProperty("性别")
        private Byte gender;
        @ApiModelProperty("最大年龄")
        private Integer maxAge;
        @ApiModelProperty("最小年龄")
        private Integer minAge;
        @ApiModelProperty("学历")
        private Byte qualification;
        @ApiModelProperty("职业")
        private Integer job;
        @ApiModelProperty("画像地址")
        private String path;
        @ApiModelProperty("备注")
        private String remark;
    }

    @Data
    @ApiModel("删除画像")
    public static class Delete {
        @ApiModelProperty("删除ID")
        private List<Long> idList;
    }


    @Data
    @ApiModel("查询画像")
    public static class Query {
        @ApiModelProperty("性别")
        private Byte gender;
        @ApiModelProperty("年龄，传入介于最大年龄与最小年龄之间的数值，查询符合该年龄的年龄段")
        private Integer age;
        @ApiModelProperty("学历")
        private Byte qualification;
        @ApiModelProperty("职业")
        private Integer job;
    }
}
